﻿using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace Scrubblet.FrontEnd.Models.Entities
{
    public class TileSet
    {
        public TileSet()
        {
            Tiles = new Collection<Tile>();
        }

        public int Id { get; set; }
        public string Name { get; set; }
        public virtual ICollection<Tile> Tiles { get; set; }

        public void AddTiles(string letter, int value, int count)
        {
            for (int i = 0; i < count; i++)
            {
                Tiles.Add(new Tile {Symbol = letter, Value = value});
            }
        }
    }
}